<@master template="master/master-loan" title="财务详情">

<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>


<div class="detailsBox pb80">
	<#assign custType=loanapply.wfType />
	<#assign bankType=loanapply.bankType />

	<div class="detailsBox">
	 <div class="openBox">
	 <!-- 贷款要素 begin -->
	 <h3><i class="jtIco"></i>贷款要素
     </h3>
		<div class="action-ajax-load" data-url="/rback/l_i_common?loanapplyNo=${loanapply.loanapplyNo}"></div>	
	 <!-- 贷款要素  end -->
     </div>
    </div>
	
	<!-- 借款人信息  begin -->
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco1"></i>借款人信息 
			</h3>
			<div class="action-ajax-load"
				data-url="<@url value='/detail/queryFinanceLoanUser?loanapplyNo=${loanapply.loanapplyNo}&loanId=${loanapply.loanId}'/>"
				data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		</div>
	<!-- 借款人信息  end -->
    
    <#if loanSorpouseUser! >
    <div class="openBox">
			<h3 class="mt20">
				<i class="jtIco1"></i>借款人配偶信息
			</h3>
			<div class="action-ajax-load-show"
				data-url="<@url value='/detail/queryFinanceSpouseUser?loanapplyNo=${loanapply.loanapplyNo}&loanId=${loanapply.loanId}'/>"
				data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
		</div>
    </#if>
		
	<!-- 保证金、管理费和风险补偿金 begin -->
	<div class="action-ajax-load"
		data-url="<@url value='/rpaymentd/detail?loanapplyNo=${loanapply.loanapplyNo}' />">
		<p class="onload"></p>
	</div>

	<!-- 保证金、管理费和风险补偿金 end -->
	
	<!-- 逾期数据 begin -->
	<div class="openBox">
		<h3 class="mt20">
		<i class="jtIco1"></i>夫妻双方逾期数据
		</h3>
	<div id="overdue_loan_page" class="action-ajax-load" 
		data-url="<@url value='/overdueReport/overdueLoanPage?idCard=${loanUser.documentNo}&spouseIdCard=${materEntity.documentNo}'/>"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
	<!-- 逾期数据  end -->
	<!-- 代偿数据 begin -->
	<div class="openBox">
		<h3 class="mt20">
		<i class="jtIco1"></i>夫妻双方代偿数据
		</h3>
	<div id="bad_loan_page" class="action-ajax-load" 
		data-url="<@url value='/rbadloan/badLoanPage?idCard=${loanUser.documentNo}&spouseIdCard=${materEntity.documentNo}'/>"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
	<!-- 代偿数据  end -->
	
	<!-- 回款记录 begin -->
	<div class="openBox">
		<h3 class="mt20">
		<i class="jtIco1"></i>回款记录
		</h3>
	<div id="bad_loan_page" class="action-ajax-load" 
		data-url="<@url value='/rfinancial/badloan_list?billCode=${loanapply.billCode}'/>"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
	<!-- 回款记录  end -->
	
	<!-- 银行卡详情  begin-->
	<#if loanapply.wfType == "DC" || loanapply.wfType == "YQ" || loanapply.wfType == "O" || loanapply.wfType == "HN">
	<div class="action-ajax-load"
		data-url="<@url value='/loanDetail/queryBank?loanapplyNo=${loanapply.loanapplyNo}&flag=1' />"></div>
	</#if>
	<!-- 银行卡详情  end-->
	
	<!--审核历史-->
	<div class="action-ajax-load" data-url="<@url value='${agreeUrl}' />">审核历史加载中。。。</div>
	<!--待办才显示审核栏-->
	<#if approvalStatus == 'UNDO'>
		<div class="action-ajax-load" data-url="<@url value='${approvalUrl}' />"></div>
	</#if>
	<!--审核历史-->


</div>
<!-- <script type="text/javascript">
	function open_history() {
		$("#history .action-open-button").trigger("click");
	}
</script> -->
</@master>

